<h1>Export</h1>

<p>Export is used to export shapes and other objects so they can be used in another Flash file.</p>

<p>Since the identifier for an object is only unique within a given Flash file, each object exported must be given a name so it can referenced when it is imported.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top">type</td>
<td nowrap valign="top">unsigned bit</td>
<td nowrap valign="top" align="right">10</td>
<td>Identifies the Export instruction when it is encoded. It is encoded 
with the length field as a 16-bit integer (Little-endian byte order).</td>
</tr>

<tr>
<td nowrap valign="top">length</td>
<td nowrap valign="top">unsigned bit</td>
<td nowrap valign="top" align="right">6</td>
<td>The length in bytes of the body of the instruction when it is encoded. Encoded with the type 
field as a 16-bit integer. If the length is greater than 62 bytes then this field
is set to 0x3F and the next field, extendedLength contains the length of the
body of the encoded instruction.</td>
</tr>

<tr>
<td nowrap valign="top">extendedLength</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">32</td>
<td>Optional. Contains the length in bytes of the encoded instruction if it is
greater than 62 bytes. If the length is 62 bytes or less then this field is 
omitted.</td>
</tr>

<tr>
<td nowrap valign="top">count</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">16</td>
<td>The number of identifier-name pairs in the export instruction.</td>
</tr>

<tr>
<td nowrap valign="top">exports</td>
<td nowrap valign="top">identifier/String</td>
<td nowrap valign="top" align="right">&nbsp;</td>
<td>An array identifier/string pairs where the identifier is the unsigned 16-bit
identifier of the object being exported and the value is name assigned to the 
object so it can be referenced when it is imported into a Flash file.</td>
</tr>

</table>

<h2>History</h2>

<p>Export represents the ExportAssets tag in the Macromedia Flash (SWF) File Format 
Specification. It was introduced in Flash 5.</p>
